package com.authine.cloudpivot.engine.plugin.domain;


import com.authine.cloudpivot.engine.domain.ListCachedEntity;
import com.authine.cloudpivot.engine.domain.MetaEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

@Entity
@Table(
        name = "h_open_form_type",
        indexes = {@Index(
                name = "idx_open_form_type_id",
                unique = true,
                columnList = "id"
        )}
)
public class OpenFormType  extends MetaEntity {

    public static final String TABLENAME = "h_open_form_type";
    private static final long serialVersionUID = 1341252346089084271L;


    @Column(length = 50)
    private String schemaCode;
    @Column(length = 50 )
    private String code;
    @Column( length = 2)
    private Integer type;





    @Override
    public String getTableName() {
        return "h_open_form_type";
    }



    public String getSchemaCode() {
        return schemaCode;
    }

    public void setSchemaCode(String schemaCode) {
        this.schemaCode = schemaCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "OpenFormType{" +
                "schemaCode='" + schemaCode + '\'' +
                ", code='" + code + '\'' +
                ", type=" + type +
                '}';
    }
}
